
#include "handler.h"

Handler::Handler()
    : next_handler_(nullptr) { }

Handler::Handler(Handler* h)
    : next_handler_(h) { }

Handler::~Handler()
{
  delete next_handler_;
  next_handler_ = nullptr;
}

Handler* Handler::GetNextHandler()
{
  return next_handler_;
}

void Handler::SetNextHandler(Handler* h)
{
  this->next_handler_ = h;
}
